package com.hitales.liteflow.liteflowdemo.declarative.demo1;

import com.yomahub.liteflow.annotation.LiteflowComponent;
import com.yomahub.liteflow.annotation.LiteflowMethod;
import com.yomahub.liteflow.enums.LiteFlowMethodEnum;
import com.yomahub.liteflow.enums.NodeTypeEnum;
import com.yomahub.liteflow.core.NodeComponent;

@LiteflowComponent("lovedemo")
public class LoveCmp {

    // 声明这是一个 Switch 类型方法
    @LiteflowMethod(value = LiteFlowMethodEnum.PROCESS_SWITCH, nodeType = NodeTypeEnum.SWITCH)
    public String processSwitch(NodeComponent bindCmp) throws Exception {
        System.out.println("爱情选择!");
        return "xiaowang";
    }
}

